package com.saishi.dao;

import com.saishi.entity.Question;

import java.sql.SQLException;
import java.util.List;

public interface QuestionDao {
    int insert(Question question) throws SQLException;

    int FindEndId() throws SQLException;

    List<Question> bookQuery(int bookid) throws SQLException;

    List<Question> bookQuery(int bookid, int limit, int limitEnd) throws SQLException;

    int[] delete(Object[][] obj) throws SQLException;

    List<Question> selecttall() throws SQLException;

    List<Question> selectt20(int num,int sum) throws SQLException;

    int seleQuesId(String questionname ) throws  SQLException;

    Question seleQuery(int queryid) throws SQLException;
}
